<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <title>Search</title>
        <style type="text/css">
            .gritter-notice-wrapper {
                left:200px;
                top: 50px;
            }
        </style>
    </h:head>
    <h:body>
        <h:form id="formMain">
            <h1></h1>
            <br/>
            <p:panel id="panel" header="Search">
                
                <h:panelGrid columns="2" cellpadding="10">
                    <h:outputLabel for="id" style="font-weight: bold" value="ID: " />
                    <h:inputText  label="ID"  id="id" value="#{stakeholderManagerBeanid}">                       
                    </h:inputText>
          
                    <h:outputLabel for="username" style="font-weight: bold" value="Username: " />
                    <h:inputText label="Username"  id="username" value="#{stakeholderManagerBean.selectedStakeholder.username}">
                    </h:inputText>
                    
                    <h:outputLabel for="corpName" style="font-weight: bold" value="Corporation Name: " />
                    <h:inputText label="Corporation Name"  id="corpName" value="#{stakeholderManagerBean.selectedStakeholder.corpName}">                       
                    </h:inputText>
                    
                    <h:outputLabel for="bizRegNumber" style="font-weight: bold" value="Business Registration Number: " />
                    <h:inputText label="Business Registration Number"  id="bizRegNumber" value="#{stakeholderManagerBean.selectedStakeholder.bizRegNumber}">                       
                    </h:inputText>
                    
                    <h:outputLabel for="address" style="font-weight: bold" value="Address: " />
                    <h:inputText label="Address"  id="address" value="#{stakeholderManagerBean.selectedStakeholder.address.streetName}">                       
                    </h:inputText>
                   
                    <h:outputLabel for="phoneNumber" style="font-weight: bold" value="Phone Number: " />
                    <h:inputText label="phoneNumber"  id="phoneNumber" value="#{stakeholderManagerBean.selectedStakeholder.corpContactNumber}">                       
                    </h:inputText>
                    
                    <h:outputLabel for="email" style="font-weight: bold" value="Email: " />
                    <h:inputText label="Email"  id="email" value="#{stakeholderManagerBean.selectedStakeholder.corpEmail}">                       
                    </h:inputText>
                    
                    <h:outputLabel for="fax" style="font-weight: bold" value="Fax: " />
                    <h:inputText label="Fax"  id="fax" value="#{stakeholderManagerBean.selectedStakeholder.corpEmail}">                       
                    </h:inputText>
                </h:panelGrid>
                <p:commandButton id="btn" value="Search" action="TCubeViewStakeholderSearchResult?faces-redirect=true" update="panel" actionListener="#{stakeholderManagerBean.search}" />
            </p:panel>
        </h:form>
    </h:body>
</html>